#pragma once

#include <QWidget>
#include <vector>

class QStackedWidget;
class QVBoxLayout;
class QIcon;
class QButtonGroup;

using  namespace std;

class WidgetCategory: public QWidget
{
	Q_OBJECT
public:
	WidgetCategory(	QStackedWidget *stack, 
					QWidget * parent = 0,
					Qt::WFlags f = 0);
	void addWidget(QWidget* widget, QString& name, QIcon& icon);
public:
	~WidgetCategory(void);
private slots:
	void buttonClicked(int i);
private:
	QStackedWidget*		m_stackedWidget;
	QVBoxLayout*		m_layout;
	QButtonGroup*		m_buttonGroup;
	vector<QWidget*>	m_widgets;
	int					m_count;
};
